home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / rsh.man < prev    next >
Encoding:
Text File  |  1989-02-13  |  3.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4. RSH                       User Commands                       RSH
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      rsh - remote shell
  10.  
  11. SSYYNNOOPPSSIISS
  12.      rrsshh host [ --ll username ] [ --nn ] command
  13.      host [ --ll username ] [ --nn ] command
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      _R_s_h connects to the specified _h_o_s_t, and executes the speci-
  17.      fied _c_o_m_m_a_n_d.  _R_s_h copies its standard input to the remote
  18.      command, the standard output of the remote command to its
  19.      standard output, and the standard error of the remote com-
  20.      mand to its standard error.  Interrupt, quit and terminate
  21.      signals are propagated to the remote command; _r_s_h normally
  22.      terminates when the remote command does.
  23.  
  24.      The remote username used is the same as your local username,
  25.      unless you specify a different remote name with the --ll
  26.      option.  This remote name must be equivalent (in the sense
  27.      of _r_l_o_g_i_n(1C)) to the originating account; no provision is
  28.      made for specifying a password with a command.
  29.  
  30.      If you omit _c_o_m_m_a_n_d, then instead of executing a single com-
  31.      mand, you will be logged in on the remote host using
  32.      _r_l_o_g_i_n(1C).
  33.  
  34.      Shell metacharacters which are not quoted are interpreted on
  35.      local machine, while quoted metacharacters are interpreted
  36.      on the remote machine.  Thus the command
  37.  
  38.         rsh otherhost cat remotefile >> localfile
  39.  
  40.      appends the remote file _r_e_m_o_t_e_f_i_l_e to the localfile _l_o_c_a_l_-
  41.      _f_i_l_e, while
  42.  
  43.         rsh otherhost cat remotefile ">>" otherremotefile
  44.  
  45.      appends _r_e_m_o_t_e_f_i_l_e to _o_t_h_e_r_r_e_m_o_t_e_f_i_l_e.
  46.  
  47.      Host names are given in the file /etc/hosts.  Each host has
  48.      one standard name (the first name given in the file), which
  49.      is rather long and unambiguous, and optionally one or more
  50.      nicknames.  The host names for local machines are also com-
  51.      mands in the directory /usr/hosts; if you put this directory
  52.      in your search path then the rrsshh can be omitted.
  53.  
  54. FFIILLEESS
  55.      /etc/hosts
  56.      /usr/hosts/*
  57.  
  58. SSEEEE AALLSSOO
  59.      rlogin(1C)
  60.  
  61.  
  62.  
  63. Sprite v1.0              April 29, 1985                         1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RSH                       User Commands                       RSH
  71.  
  72.  
  73.  
  74. BBUUGGSS
  75.      If you are using _c_s_h(1) and put a _r_s_h(1C) in the background
  76.      without redirecting its input away from the terminal, it
  77.      will block even if no reads are posted by the remote com-
  78.      mand.  If no input is desired you should redirect the input
  79.      of _r_s_h to /dev/null using the --nn option.
  80.  
  81.      You cannot run an interactive command (like _r_o_g_u_e(6) or
  82.      _v_i(1)); use _r_l_o_g_i_n(1C).
  83.  
  84.      Stop signals stop the local _r_s_h process only; this is argu-
  85.      ably wrong, but currently hard to fix for reasons too com-
  86.      plicated to explain here.
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sprite v1.0              April 29, 1985                         2
  130.  
  131.  
  132.  
  133.